package com.meila.cms.dao;

import java.util.List;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.meila.cms.entity.PartsDesign;
import com.meila.cms.model.MyPartsModel;
import com.meila.cms.model.PartDesignModel;
import com.meila.cms.model.PartsDesignModel;

public interface DesignPartMapper{
	
	PartsDesign selectByPrimaryKey(Integer id);
	
	int deleteByPrimaryKey(Integer id);
	
	int insert(PartsDesign record);
	
	int insertSelective(PartsDesign record);
	
	int updateByPrimaryKeySelective(PartsDesign record);
	
	int updateByPrimaryKey(PartsDesign record);
	
	int selectMaxid();
	
	List findMyDesign(PartDesignModel partDesignModel,PageBounds pageBounds);
	
	int findMyDesignCount(PartDesignModel partDesignModel,PageBounds pageBounds);
	
	int selectIdByDesignname(PartsDesignModel partsDesignModel);
	
	MyPartsModel selectMyPartsByDesignname(PartsDesignModel partsDesignModel);
	
	int selectDesigname(PartDesignModel partDesignModel);
	
	int selectDesignameInNewDesign(PartDesignModel partDesignModel);
	
}